package com.ruoyi.system.domain;

import java.util.List;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 t_order
 * 
 * @author ruoyi
 * @date 2020-10-22
 */
public class TOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long orderId;

    /** 销售单号 */
    @Excel(name = "销售单号")
    private String orderNo;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String receiver;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String mobile;

    /** 销售时间 */
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 收款方式 */
    @Excel(name = "收款方式")
    private String payWay;

    /** 物流公司 */
    @Excel(name = "物流公司")
    private String logistics;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 销售金额 */
    @Excel(name = "销售金额")
    private Double amount;

    /** 联系人 */
    @Excel(name = "联系人")
    private String constact;

    /** 商品摘要 */
    @Excel(name = "商品摘要")
    private String summary;

    /** 订单明细信息 */
    private List<TOrderDetail> tOrderDetailList;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setPayWay(String payWay) 
    {
        this.payWay = payWay;
    }

    public String getPayWay() 
    {
        return payWay;
    }
    public void setLogistics(String logistics) 
    {
        this.logistics = logistics;
    }

    public String getLogistics() 
    {
        return logistics;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setAmount(Double amount) 
    {
        this.amount = amount;
    }

    public Double getAmount() 
    {
        return amount;
    }
    public void setConstact(String constact) 
    {
        this.constact = constact;
    }

    public String getConstact() 
    {
        return constact;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }

    public List<TOrderDetail> getTOrderDetailList()
    {
        return tOrderDetailList;
    }

    public void setTOrderDetailList(List<TOrderDetail> tOrderDetailList)
    {
        this.tOrderDetailList = tOrderDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("receiver", getReceiver())
            .append("address", getAddress())
            .append("mobile", getMobile())
            .append("orderTime", getOrderTime())
            .append("payWay", getPayWay())
            .append("logistics", getLogistics())
            .append("comment", getComment())
            .append("amount", getAmount())
            .append("constact", getConstact())
            .append("summary", getSummary())
            .append("tOrderDetailList", getTOrderDetailList())
            .toString();
    }
}
